#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QStackedLayout>
#include <QStringList>
#include "file.h"
#include "loginwidget.h"
#include "studentwidget.h"
#include "teacherwidget.h"
#include "managerwidget.h"

namespace Ui {
class MainWidget;
}

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    explicit MainWidget(QWidget *parent = nullptr);
    ~MainWidget();

private:
    Ui::MainWidget *ui;
    LoginWidget *loginwidget;        //登录窗口
    StudentWidget *studentwidget;   //学生窗口
    TeacherWidget *teacherwidget;    //教师窗口
    ManagerWidget *managerwidget;    //管理员窗口
    QStackedLayout *stackLayout;   //QStackedLayout布局
    QStringList infoLine;
    file *file1;
};

#endif // MAINWIDGET_H
